package com.app.controller;

import com.app.service.AdminMapService;
import com.app.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@Controller
@RestController
@RequestMapping("/api")
public class MapController {
    @Autowired
    private AdminMapService adminMapService;
    //列表
    @GetMapping("/getMapList")
    public Result<Object> getMapList(@RequestParam(value = "keywords",required = false) String keywords) {
        return Result.success(adminMapService.getList(keywords));
    }
}
